package com.gw2.gw2world.web.server.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

@Entity
public class Event {
	@Id
	@Column(name="id")
	private String id;
	@Transient
	private String state;
	@Column(name="map_id")
	private int map_id;
	@Transient
	private int server_id;
	@Column(name="level")
	private int level=1;
	@Column(name="treeLevel")
	private int treeLevel=1;
	@Column(name="requireGroup")
	private boolean requireGroup=false;
	@Transient
	private long up=0;
	@Column(name="timeBeforeStart")
	private int timeBeforeStart=0;
	@Column(name="duration")
	private int duration=0;
	@Transient
	private Shape location;

	public int getTimeBeforeStart() {
		return timeBeforeStart;
	}

	public void setTimeBeforeStart(int timeBeforeStart) {
		this.timeBeforeStart = timeBeforeStart;
	}

	public int getDuration() {
		return duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

	public int getTreeLevel() {
		return treeLevel;
	}

	public void setTreeLevel(int treeLevel) {
		this.treeLevel = treeLevel;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public int getMap_id() {
		return map_id;
	}

	public void setMap_id(int map_id) {
		this.map_id = map_id;
	}

	public int getServer_id() {
		return server_id;
	}

	public void setServer_id(int server_id) {
		this.server_id = server_id;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public long getUp() {
		return up;
	}

	public void setUp(long up) {
		this.up = up;
	}

	public Shape getLocation() {
		return location;
	}

	public void setLocation(Shape location) {
		this.location = location;
	}

	public boolean isRequireGroup() {
		return requireGroup;
	}

	public void setRequireGroup(boolean requireGroup) {
		this.requireGroup = requireGroup;
	}
	
}
